#!/bin/bash
# 参考：https://www.sysgeek.cn/ubuntu-disable-ipv6/
sudo echo -e "\nsudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1" >>  /etc/sysctl.conf

sudo sysctl -p